// const { pathsToModuleNameMapper } = require("ts-jest/utils")
const { pathsToModuleNameMapper } = require("ts-jest");

const { compilerOptions } = require("./tsconfig.json");

module.exports = {
    preset: "ts-jest",
    roots: ["<rootDir>"],
    transform: {
        "^.+\\.tsx?$": "ts-jest"
    },
    moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths || {}, {
        prefix: "<rootDir>/"
    }),
    moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"]
};
